﻿namespace DFGK.WMS.Common.Web
{
    public static class LedipShow
    {
        /// <summary>
        /// 入库查询ip地址
        /// </summary>
        /// <returns></returns>
        public static string Getledip(int? type, string roadway)
        {
            string ip = "";
            switch (roadway)
            {
                case "1":
                    if (type == 1)
                    {
                        ip = "10.10.100.151";
                    }
                    else if(type==2)
                    {
                        ip = "10.10.100.152";
                    }
                    
                    break;
                case "2":
                    if (type == 1)
                    {
                        ip = "10.10.100.153";
                    }
                    else if (type == 2)
                    {
                        ip = "10.10.100.154";
                    }
                    break;
                case "3":
                    if (type == 1)
                    {
                        ip = "10.10.100.155";
                    }
                    else if (type == 2)
                    {
                        ip = "10.10.100.156";
                    }
                    break;
                case "4":
                    ip = "10.10.100.157";
                    break;
                default:
                    break;
            }
            return ip;
        }
    }
}
